package edu.sctu.xiangkun.day201505.day20150527.eatmeals;


import java.util.Random;

/**
 * Created by lenovo on 2015/5/27.
 */

public class Foods extends Windows{

   private String foodname;
    private int foodprice;

    public void setFoodname(String foodname){
        this.foodname = foodname;
    }

    public String getFoodname(){
        System.out.println("您所选的菜肴是：");
        return foodname;
    }

    public void setFoodprice(int foodprice){
        this.foodprice = foodprice;
    }

    public int getFoodprice(){
        Random random = new Random();
        int foodprice = random.nextInt(8)+1;
        return foodprice;
    }
}
